/*******************************************************************************
* Project: QSAR(Cute Software Architecture) 
*
* Copyright: Copyright(C) 2024 by YuetingBen, All Rights Reserved
*
* File name: CanIfType.h
*
* Brief: ;
*
* Author: Yueting.Ben
*
* Module: CanIf
*
*******************************************************************************/

#ifndef CANIFTYPE_H
#define CANIFTYPE_H

/** HEADER FILES **/
#include "PlatformType.h"
#include "PlatformCfg.h"
#include "ComStackType.h"


/** TYPEDEF DEFINITION **/
typedef enum
{
    CANIF_TX_INDEX_FIRST = 0x00, 
    CANIF_TX_INDEX_101  = CANIF_TX_INDEX_FIRST, 
    CANIF_TX_INDEX_102,
    CANIF_TX_INDEX_720,
    CANIF_TX_INDEX_MAX
}CanIf_TxIndexType;


typedef enum
{
    CANIF_RX_INDEX_FIRST = 0x00, 
    CANIF_RX_INDEX_201  = CANIF_RX_INDEX_FIRST, 
    CANIF_RX_INDEX_202,
    CANIF_RX_INDEX_710,
    CANIF_RX_INDEX_7DF,
    CANIF_RX_INDEX_MAX
}CanIf_RxIndexType;


typedef enum
{
  CANIF_NO_NOTIFICATION = 0u,
  CANIF_TX_RX_NOTIFICATION
}CanIf_NotifStatusType;


typedef struct
{
    uint8 u8_canId;
    uint8 u8_length;
    uint8 u8_buffer[8];
}CANIF_PDU_INFO_S;


typedef void CanIf_ConfigType;

/** MACRO DEFINITION **/


#endif

